home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
src
/
demos
/
GL
/
ideas
/
o.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-01
|
3KB
|
132 lines
/*
* Copyright 1992, 1993, 1994, Silicon Graphics, Inc.
* All Rights Reserved.
*
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
* the contents of this file may not be disclosed to third parties, copied or
* duplicated in any form, in whole or in part, without the prior written
* permission of Silicon Graphics, Inc.
*
* RESTRICTED RIGHTS LEGEND:
* Use, duplication or disclosure by the Government is subject to restrictions
* as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
* and Computer Software clause at DFARS 252.227-7013, and/or in similar or
* successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
* rights reserved under the Copyright Laws of the United States.
*/
#include <gl.h>
float o_data[][2] = {
{2.975610, 9.603255},
{2.878049, 9.342828},
{2.292683, 9.131231},
{2.048780, 8.691760},
{1.707317, 8.528993},
{1.658537, 7.731434},
{0.878049, 7.047813},
{1.349594, 5.550356},
{0.569106, 5.029501},
{1.528455, 4.443540},
{0.991870, 3.434385},
{1.967480, 3.955239},
{1.772358, 2.994914},
{2.422764, 3.825025},
{2.829268, 3.092574},
{3.154472, 3.971516},
{3.512195, 3.727365},
{3.772358, 4.264496},
{4.130081, 4.524924},
{4.162601, 4.996948},
{4.699187, 5.403866},
{4.471545, 6.461852},
{5.219512, 7.243133},
{4.439024, 8.105799},
{5.235772, 8.756866},
{4.065041, 8.870804},
{4.991870, 9.391658},
{3.853658, 9.228891},
{4.390244, 9.912513},
{3.463415, 9.407935},
{3.674797, 9.912513},
{2.829268, 9.342828},
{2.959350, 9.603255},
};
draw_o() {
bgntmesh();
v2f(o_data[0]);
v2f(o_data[1]);
v2f(o_data[2]);
v2f(o_data[3]);
v2f(o_data[4]);
v2f(o_data[5]);
v2f(o_data[6]);
v2f(o_data[7]);
v2f(o_data[8]);
v2f(o_data[9]);
v2f(o_data[10]);
v2f(o_data[11]);
v2f(o_data[12]);
v2f(o_data[13]);
v2f(o_data[14]);
v2f(o_data[15]);
v2f(o_data[16]);
v2f(o_data[17]);
v2f(o_data[18]);
v2f(o_data[19]);
v2f(o_data[20]);
v2f(o_data[21]);
v2f(o_data[22]);
v2f(o_data[23]);
v2f(o_data[24]);
v2f(o_data[25]);
v2f(o_data[26]);
v2f(o_data[27]);
v2f(o_data[28]);
v2f(o_data[29]);
v2f(o_data[30]);
v2f(o_data[31]);
v2f(o_data[32]);
endtmesh();
bgnline();
v2f(o_data[0]);
v2f(o_data[2]);
v2f(o_data[4]);
v2f(o_data[6]);
v2f(o_data[8]);
v2f(o_data[10]);
v2f(o_data[12]);
v2f(o_data[14]);
v2f(o_data[16]);
v2f(o_data[18]);
v2f(o_data[20]);
v2f(o_data[22]);
v2f(o_data[24]);
v2f(o_data[26]);
v2f(o_data[28]);
v2f(o_data[30]);
v2f(o_data[32]);
v2f(o_data[31]);
v2f(o_data[29]);
v2f(o_data[27]);
v2f(o_data[25]);
v2f(o_data[23]);
v2f(o_data[21]);
v2f(o_data[19]);
v2f(o_data[17]);
v2f(o_data[15]);
v2f(o_data[13]);
v2f(o_data[11]);
v2f(o_data[9]);
v2f(o_data[7]);
v2f(o_data[5]);
v2f(o_data[3]);
v2f(o_data[1]);
endline();
}